package com.cskaoyan.day03.generic2;

/**
 * @author stone
 * @date 2022/01/29 10:20
 */
public class GenericDemo2 {

    public static void main(String[] args) {
        MysteryBox<String> mysteryBox = new MysteryBox<>(1, "红");
        String value = mysteryBox.getValue();
        mysteryBox.setValue("");

        MysteryBox<Integer> mysteryBox1 = new MysteryBox<Integer>(2,10);
        mysteryBox1.setValue(5);

    }
}
